package Homework;
//新闻管理系统
public class NewsTitle {
	//新闻标题的属性：ID   名称   作者
	private int id;
	private String title;
	private String author;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public NewsTitle(int id, String title, String author) {
		super();
		this.id = id;
		this.title = title;
		this.author = author;
	}
	public NewsTitle() {
		super();
	}
	@Override
	public String toString() {
		return "新闻ID：" + id + "\t标题：" + title + "\t作者：" + author +"\t";
	}
	
	
	
}
